<!DOCTYPE html>
<html lang="en">
<head>
    <title>复选框/单选框</title>
    <meta charset="utf-8">
    <meta content="width=device-width" name="viewport">
    <link href="icheck.css" rel="stylesheet">
    <link href="icommon.css" rel="stylesheet">

    <script src="jquery-1.11.3.min.js"></script>
    <script src="icheck.js?v=1.0.2"></script>
</head>
<body>
                    <div class="user-sex">
                        <div class="sex">
                            <input type="radio" id="sex-man" name="radio-sex" value="0" checked>
                            <label for="sex-man">男</label>
                        </div>
                        <div class="sex">
                            <input type="radio" id="sex-woman" name="radio-sex" value="1" >
                            <label for="sex-woman">女</label>
                        </div>
                        <div>
                            <input type="radio" id="line-radio-disabled" disabled>
                            <label for="line-radio-disabled">Disabled</label>
                        </div>
                        <div>
                            <input type="radio" id="line-radio-disabled-checked" checked disabled>
                            <label for="line-radio-disabled-checked">Disabled &amp; checked</label>
                        </div>
                        <div>
                            <input type="checkbox" id="check1" name="checkbox" value="000" />
                            <label for="check1">女</label>
                        </div>
                        <div>
                            <input type="checkbox" id="check2" name="checkbox" value="111" />
                            <label for="check2">女</label>
                        </div>
                        <div>
                        <input type="checkbox" id="check3" name="checkbox" value="222" />
                        <label for="check3">女</label>
                    </div>
                    </div>
                <script>
                    $(document).ready(function(){
                        $('.user-sex input').each(function(){
                            var self = $(this),
                                    label = self.next(),
                                    label_text = label.text();

                            label.remove();
                            self.iCheck({
                                checkboxClass: 'icheckbox_sm-blue',
                                radioClass: 'radio_sm-blue',
                                insert: label_text
                            });
                        });
                    });
                </script>
</body>
</html>